<?php $this->load->view('pages/head'); ?>
<body>
<?php $this->load->view('pages/header'); ?>

<div class="container-fluid" style="margin-top: 20px">
    <form action="<?= base_url('/departments/edit/' . $dept['id']) ?>" method="post">
        <fieldset>
            <legend>编辑部门</legend>
            <div class="clearfix">
                <label for="name">部门名称: </label>
                <div class="input">
                    <input class="input-small" data-val="true" data-val-required="部门名称为必填项" id="name" name="name" type="text" value="<?= $dept['name'] ?>" />
                </div>
            </div>
            <div class="clearfix">
                <label for="memo">备注: </label>
                <div class="input">
                    <textarea cols="20" rows="2" name="memo" id="memo"><?= $dept['memo']; ?></textarea>
                </div>
            </div>
            <div class="actions">
                <input type="submit" class="btn btn-primary" value="保存">
            </div>
        </fieldset>
    </form>
</div>
<?php $this->load->view('pages/foot'); ?>
</body>